#include<iostream>
#include"coordin.h"
using namespace std;
int main()
{
    rect rplace;
    polar pplace;
    cout<<"输入x和y的值："<<endl;
    while(cin>>rplace.x>>rplace.y)
    {
        pplace=rect_to_polar(rplace);
        show_polar(pplace);
        cout<<"输入x和y的值：(输入q结束)"<<endl;
    }
    cout<<"再见"<<endl;
    return 0;
}